<!DOCTYPE html>
<html lang="cn" class="app fadeInUp animated">
<head>
  <meta charset="utf-8"/>
  <title>{$_SERVER['WEB_NAME']}—国内最专业的小程序管理平台</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
  <link href="/assets/stylesheets/bootstrap.min.css" rel="stylesheet"/>
  <link href="/assets/stylesheets/font-awesome.min.css" rel="stylesheet"/>
  <link rel="stylesheet" href="/hyqcss/public.css">
  <style type="text/css">
    /*dao hang*/
    .public-header-nav{
      background: #fff;
      border-bottom: 1px solid #e6e6e6;
      padding-top: 8px;
      display: flex;
      align-items: center;
      padding-left: 0;
      /*margin-right: 10px;*/
      margin: 0;
    }
    .public-header-nav li{
      line-height: 40px;
      padding: 0 15px;
      list-style: none;
    }
    .public-header-nav li a{
      color: #333;
      font-size: 14px;
      border-bottom: 2px solid #fff;
      text-decoration: none;
    }
    .public-header-nav-active{
      color: #1E9FFF !important;
      border-bottom: 2px solid #1E9FFF !important;
    }
  </style>
</head>

<body>
  <ul class="public-header-nav">
    <li class="public-header-nav-active"><a href="balance.html" target="_self">账户充值</a></li>
    <li><a href="updatePwd.html" target="_self">修改密码</a></li>
    <li><a href="myAccount.html" target="_self">升级续费</a></li>
    <li><a href="sms/balance.html" target="_self">短信余额</a></li>
    <li><a href="sms/sendRecord.html" target="_self">短信发送记录</a></li>
  </ul>
<div class="container-fluid" style="padding-top: 15px">
  <div class="row">
    <div class="col-md-12">
      <!--余额面板-->
      <div class="panel panel-default">
        <div class="panel-heading">
          账户余额
        </div>
        <div class="panel-body">
          <div>
            账户余额：￥{sprintf('%.2f', $balance)}
          </div>
           <div>
            账户余额：￥{sprintf('%.2f', $pay)}
          </div>
           <div>
            账户余额：￥{sprintf('%.2f', $up)}
          </div>
          <div style="margin: 20px auto;">
            <a href="javascript:void(0)" class="btn btn-success" id="btn-recharge">
              <i class="fa fa-cny"></i>
              充值
            </a>
          </div>
        </div>
      </div>
      <!--充值记录面板-->
      <div class="panel panel-default">
        <div class="panel-heading">
          余额明细
        </div>
        <div class="panel-body">
          <table class="table">
            <tr>
              <th>充值/支付  时间</th>
              <th>充值/支付  金额</th>
              <th>订单号</th>
              <th>微信/支付  交易号</th>
            </tr>
            {loop $recordList as $record}
            <tr>
              <td>{date('Y-m-d H:i:s',$record['recharge_time'])}</td>
              <td>{if $record["type"]==2}-{/if}{$record['money']}</td>
              <td>{$record['out_trade_no']}</td>
              <td>{$record['transaction_id']}</td>
            </tr>
            {/loop}
          </table>
        </div>
        <div class="main-container-h pageing-container-h">
          <div class="pageing-content-h">
              <span>{$p->totalnum}条/{$p->totalpage}页</span>
          </div>
          <ul class="pageing-content-h">{P weidogsadmin}</ul>
        </div>
      </div>
    </div>
  </div>
</div>

<script src="/mix/jquery.min.js"></script>
<script src="/mix/layer.js"></script>
<script>
  $('#btn-recharge').on('click', function () {
    layer.open({
      type: 2,
      title: '充值',
      shadeClose: true,
      shade: false,
      maxmin: true, //开启最大化最小化按钮
      area: ['893px', '600px'],
      content: 'recharge.html',
      end: function () { //此处用于演示
        location.reload(1);
      }
    });
  });
</script>

</body>

</html>
